ns_config_diff

Configuration for NetScaler Configuration Diff resource.

Read/write properties

corrective_command<String>

Corrective command.

ns_ip_address<String>

NetScaler IP Address.
Minimum length = 1
Maximum length = 64

diff_file<String>

Name of the file containing diff between source and target file generated by a schedule diff operation..

ignoresysuserpassword<Boolean>

When set to true, ignores password difference in diff command output.

target_file<String>

NetScaler configuration target file.

source_file<String>

NetScaler configuration source file.

Read only properties

diff_response<String>

Diff between source and target file.

params_value<String>

Params value seen in the diff output.

params_targetvalue<String>

Params target value seen in the diff output.

target_command<String>

Diff command ouput present in target.

diff_data<String>

Diff data in XML format..

source_command<String>

Diff command ouput present in source.

params_name<String>

Params name seen in the diff output.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

The following parameters can be used in the nitro request :

onerror   <String_value>

Use this parameter to set the onerror status for nitro request. Applicable only for bulk requests.
Default value: EXIT
Possible values = EXIT, CONTINUE

gen_batchdo_diffdiff_tablediff_table_report

gen_batch

URL:https://<MGMT-IP>/nitro/v2/config/ns_config_diff?action=gen_batch&onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"ns_config_diff": {
      "diff_file":<String_value>,
      "corrective_command":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "source_file":<String_value>,
      "ns_ip_address":<String_value>,
      "target_file":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ns_config_diff":[{
      "corrective_command":<String_value>,
      "diff_response":<String_value>,
      "ns_ip_address":<String_value>,
      "params_value":<String_value>,
      "params_targetvalue":<String_value>,
      "target_command":<String_value>,
      "diff_data":<String_value>,
      "source_command":<String_value>,
      "diff_file":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "params_name":<String_value>,
      "target_file":<String_value>,
      "source_file":<String_value>}]}

do_diff

URL:https://<MGMT-IP>/nitro/v2/config/ns_config_diff?action=do_diff&onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"ns_config_diff": {
      "corrective_command":<String_value>,
      "diff_file":<String_value>,
      "ns_ip_address":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "source_file":<String_value>,
      "target_file":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ns_config_diff":[{
      "corrective_command":<String_value>,
      "diff_response":<String_value>,
      "ns_ip_address":<String_value>,
      "params_value":<String_value>,
      "params_targetvalue":<String_value>,
      "target_command":<String_value>,
      "diff_data":<String_value>,
      "source_command":<String_value>,
      "diff_file":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "params_name":<String_value>,
      "target_file":<String_value>,
      "source_file":<String_value>}]}

diff_table

URL:https://<MGMT-IP>/nitro/v2/config/ns_config_diff?action=diff_table&onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"ns_config_diff": {
      "ns_ip_address":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "source_file":<String_value>,
      "corrective_command":<String_value>,
      "diff_file":<String_value>,
      "target_file":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ns_config_diff":[{
      "corrective_command":<String_value>,
      "diff_response":<String_value>,
      "ns_ip_address":<String_value>,
      "params_value":<String_value>,
      "params_targetvalue":<String_value>,
      "target_command":<String_value>,
      "diff_data":<String_value>,
      "source_command":<String_value>,
      "diff_file":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "params_name":<String_value>,
      "target_file":<String_value>,
      "source_file":<String_value>}]}

diff_table_report

URL:https://<MGMT-IP>/nitro/v2/config/ns_config_diff?action=diff_table_report&onerror=<String_value>

HTTPS Method:POST

Request Headers:

Content-Type:application/json

X-NITRO-USER:username_value<String>

X-NITRO-PASS:password_value<String>

or

Cookie:NITRO_AUTH_TOKEN=token_value<String>

Request Payload:JSON

{"ns_config_diff": {
      "diff_file":<String_value>,
      "corrective_command":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "source_file":<String_value>,
      "ns_ip_address":<String_value>,
      "target_file":<String_value>}}

Response:

HTTPS Status Code on Success: 200 OK HTTPS Status Code on Failure: 4xx (for general HTTPS errors) or 5xx (for NetScaler-MAS-specific errors). The response payload provides details of the error

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "severity": <String_value>, "ns_config_diff":[{
      "corrective_command":<String_value>,
      "diff_response":<String_value>,
      "ns_ip_address":<String_value>,
      "params_value":<String_value>,
      "params_targetvalue":<String_value>,
      "target_command":<String_value>,
      "diff_data":<String_value>,
      "source_command":<String_value>,
      "diff_file":<String_value>,
      "ignoresysuserpassword":<Boolean_value>,
      "params_name":<String_value>,
      "target_file":<String_value>,
      "source_file":<String_value>}]}